def compare(list,n):

    if n == 0:
        return list[0]
    else:
        max = compare(list,n-1)
        if max < list[n-1]:
             max = list[n-1]
        return max

n = int(input("请输入要输入数字的个数："))
print("请输入{}个数字：".format(n))
list = []
for i in range(0,n):
    x = input()
    list.append(x)

print("数组最大数为{}".format(compare(list,n)))

